package com.cppsu.cgx.libraryseatselection.dto;

import com.cppsu.cgx.libraryseatselection.validator.FlagValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @Author: guibo
 * @Description:
 * @Date: Created in 14:46 2021/3/10
 * @Modified By:
 */
@Data
public class SeatParam {
    private Long id;

    @NotBlank
    private Long floorId;

    @ApiModelProperty(value = "座位号")
    @NotBlank
    private String number;

    @ApiModelProperty(value = "座位状态：1可选，2停用，3报修")
    @FlagValidator(value = {"1","2","3"}, message = "状态不正确")
    private Integer status;

}
